﻿using SqlSugar;

namespace memo.entity.PO;

///<summary>
/// 备忘录类
/// </summary>
[SugarTable("Memo")]
public class Memo {

    [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
    public int? Id { get; set; }

    [SugarColumn(IsNullable = true)]
    public int? UserId { get; set; }
    
    public string? Title { get; set; } 

    [SugarColumn(IsNullable = true)]
    public string? Content { get; set; }

    public DateTime? CreateTime { get; set; }
    //public string? FormattedCreateTime => CreateTime?.ToString("yyyy-MM-dd HH:mm:ss") ?? null;
    public DateTime? UpdateTime { get; set; }
    //public string? FormattedUpdateTime => UpdateTime?.ToString("yyyy-MM-dd HH:mm:ss") ?? null;

}